# Generated automatically from Makefile.in by configure.
# MakeFile for QuakeTools

QTLIB = @top_srcdir@/lib/libqtools.a
QTLIBP = @top_srcdir@/lib/libqtools_p.a
QTLIBV = @top_srcdir@/lib/libqtools_v.a

#
# buildings
#
default: $(QTPACK)
profile: $(QTPACKP)
coverage: $(QTPACKV)
all: default profile coverage
test: @top_srcdir@/bin/ppmdiff

#
# cleanups
# 
clean:
	-rm -f $(QTPACK) $(QTOBJ)
cleanprofile:
	-rm -f $(QTPACKP) $(QTOBJP)
cleancoverage:
	-rm -f $(QTPACKV) $(QTOBJV) $(QTOBJBB)
cleanall: clean cleanprofile cleancoverage

#
# dists
#
distclean: cleanall						# clean even the configured files
	-rm -f Makefile

#
# installations
#
install: default
	@INSTALL@ $(QTPACK) @bindir@
installprofile: profile
	@INSTALL@ $(QTPACKP) @bindir@
installcoverage: coverage
	@INSTALL@ $(QTPACKV) @bindir@
installall: install installprofile installcoverage

#
# debugging/analysing
#
analyse:
	for i in $(QTSRC) ; do \
	  gcov -f -l -b $$i >$$i.branch; \
	done
analyseclean:
	-rm -f $(QTOBJDA) *.branch *.gcov

#
# rules
#
include	@top_srcdir@/src/Makefile-rules

#
# sources/objects/libraries
#
QTPACK = @top_srcdir@/bin/qtools @top_srcdir@/bin/qbsp @top_srcdir@/bin/light \
	@top_srcdir@/bin/qbsp @top_srcdir@/bin/vis @top_srcdir@/bin/qcc
QTPACKP = $(addsuffix P, $(QTPACK))
QTPACKV = $(addsuffix V, $(QTPACK))
QTSRC = $(addsuffix .c, $(QTPACK))
QTOBJ = $(addsuffix .o, $(QTPACK))
QTOBJP = $(addsuffix .p, $(QTPACK))
QTOBJV = $(addsuffix .v, $(QTPACK))
QTOBJDA = $(addsuffix .da, $(QTPACK))
QTOBJBB = $(addsuffix .b*, $(QTPACK))

@top_srcdir@/bin/qtools: qtools.o $(QTLIB)
	$(CC) $(LDFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/qtoolsP: qtools.p $(QTLIBP)
	$(CC) $(LDPFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/qtoolsV: qtools.v $(QTLIBV) 
	$(CC) $(LDVFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/qbsp: qbsp.o $(QTLIB) 
	$(CC) $(LDFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/qbspP: qbsp.p $(QTLIBP) 
	$(CC) $(LDPFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/qbspV: qbsp.v $(QTLIBV) 
	$(CC) $(LDVFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/light: light.o $(QTLIB)
	$(CC) $(LDFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/lightP: light.p $(QTLIBP)
	$(CC) $(LDPFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/lightV: light.v $(QTLIBV)
	$(CC) $(LDVFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/vis: vis.o $(QTLIB)
	$(CC) $(LDFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/visP: vis.p $(QTLIBP)
	$(CC) $(LDPFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/visV: vis.v $(QTLIBV)
	$(CC) $(LDVFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/qcc: qcc.o $(QTLIB)
	$(CC) $(LDFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/qccP: qcc.p $(QTLIBP)
	$(CC) $(LDPFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/qccV: qcc.v $(QTLIBV)
	$(CC) $(LDVFLAGS) -o $@ $< @LIBS@ -lqbuild -lqsys -lqtools -lqbuild -lqsys -lqtools
@top_srcdir@/bin/ppmdiff: ppmdiff.c
	$(CC) $(CFLAGS) -o $@ ppmdiff.c

#
# dependencies
#
depend:
	@MKD@ -m $(INCL) qtools.c qbsp.c light.c qcc.c vis.c ppmdiff.c

# DO NOT DELETE
